package com.cl.cloud.auth.model;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @description: 自定义OAuth2Authentication中的principal
 * @author: liuzijian
 * @time: 2022-05-12 15:04
 */
public class CustomOauth2User extends User {
    public CustomOauth2User(
            String username,
            String password,
            Collection<? extends GrantedAuthority> authorities
    ) {
        super(username, password, authorities);
    }
}
